package com.anjubao.parking.municipal.parkinglot.service;
import com.anjubao.parking.municipal.parkinglot.dto.DeviceWarningDto;
import com.anjubao.parking.municipal.parkinglot.mapper.DeviceLotMapper;
import com.anjubao.parking.municipal.parkinglot.model.ParkingLotDeviceLog;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * 设备日志 service层
 *
 */
@Slf4j
@Service
public class DeviceService extends ServiceImpl<DeviceLotMapper, ParkingLotDeviceLog> {

    @Resource
    private DeviceLotMapper deviceLotMapper;

    public IPage<DeviceWarningDto> getWarningList(Page<DeviceWarningDto> page) {
        return deviceLotMapper.getWarningList(page);
    }

}
